NMR studies of carbon dioxide sequestration in porous media