Hierarchically porous Co3O4/C nanowire arrays derived from a metal–organic framework for high performance supercapacitors and the oxygen evolution reaction