A new method to synthesize nickel carbide (Ni3C) nanoparticles in solution.