3D porous graphitic nanocarbon for enhancing the performance and durability of Pt catalysts: a balance between graphitization and hierarchical porosity