Control of Er3+ diffusion by co-diffused Ti4+ in LiNbO3 crystal