Characterizing porous media with NMR methods