Secondary ion mass spectrometry and near field study of TiLiNbO3 optical waveguides