Electrospun porous hierarchical carbon nanofibers with tailored structures for supercapacitors and capacitive deionization