Highly microporous polymer-based carbons for CO2 and H2 adsorption