Nitrogen-doped porous carbon with a hierarchical structure prepared for a high performance symmetric supercapacitor