Coating made of platinum or Pt-based alloys