Facile synthesis of nitrogen-doped porous carbon for high-performance supercapacitors