Template-free preparation of anthracite-based nitrogen-doped porous carbons for high-performance supercapacitors and efficient electrocatalysts for the oxygen reduction reaction