Characterization of porous media using NMR methods