Fabrication of nitrogen-doped porous carbons for highly efficient CO2 capture: rational choice of a polymer precursor