Magnesium oxide modified nitrogen-doped porous carbon composite as an efficient candidate for high pressure carbon dioxide capture and methane storage.