Cobalt nanoparticles embedded in N-doped carbon as an efficient bifunctional electrocatalyst for oxygen reduction and evolution reactions.