A Salt-flux synthesis of highly porous, N- and O-doped carbons from a polymer precursor and its use for high capacity/high rate supercapacitors