Fabrication of carbon-coated cobalt nanoparticles by the catalytic method