Analysis of diffusion in lithium niobate