Cobalt nanoparticles embedded in nitrogen-doped carbon for the hydrogen evolution reaction.