Metallic cobalt encapsulated in N-doped carbon nanowires: a highly active bifunctional catalyst for oxygen reduction and evolution