Carbon-coated core shell structured copper and nickel nanoparticles synthesized in an ionic liquid.