Toward carbon dioxide capture using nanoporous materials