Coating made of nickel carbide