Synthesis of functionalized nanoporous biocarbons with high surface area for CO2 capture and supercapacitor applications