Porous 3D polymers for high pressure methane storage and carbon dioxide capture