Hierarchical N-Doped Porous Carbons for Zn–Air Batteries and Supercapacitors