Electrochemical synthesis and stabilization of cobalt nanoparticles