Template growth of nitrogen-doped mesoporous graphene on metal oxides and its use as a metal-free bifunctional electrocatalyst for oxygen reduction and evolution reactions