Nitrogen-containing ordered mesoporous carbons applied as CO2 adsorbents and anode materials in energy storage devices