Gas sorption and supercapacitive properties of hierarchical porous graphitic carbons prepared from the hard-templating of mesoporous ZnO/Zn(OH)2 composite spheres.