Efficient CO2 adsorption and mechanism on nitrogen-doped porous carbons