A facile route to carbon-coated nickel-based metal nanoparticles