The theory and methodology of nuclear spins diffusing through porous media