Rational Synthesis of Activated Carbons for Enhanced CO2 Uptake and Methane Storage