Diffusion properties of Mg2+ and Ti4+ ions in optical-damage-resistant near-stoichiometric Ti:Mg:LiNbO3 waveguide