An analysis of solute diffusion in rocks