Secondary ion mass spectrometry study of photorefractive-damage-resistant locally Er/Mg-doped near-stoichiometric Ti:Mg:Er:LiNbO_3 strip waveguides