Simulation and experimental measurements of internal magnetic field gradients and NMR transverse relaxation times (T2) in sandstone rocks