Theoretical effect of diffusion on isotopic abundance ratios in rocks and associated fluids