Coating made of palladium or Pd-based alloys