Naturally derived porous carbon with selective metal- and/or nitrogen-doping for efficient CO2 capture and oxygen reduction