Coating made of nickel or Ni-based alloys