Trapping precursor-level functionalities in hierarchically porous carbons prepared by a pre-stabilization route for superior supercapacitors