Measuring diffusion coefficients of solutes in porous media by NMR imaging