Secondary ion mass spectrometry study of Ti^4+ diffusion properties in congruent Er:LiNbO_3 codoped with moderate concentration of MgO