Coating made of iridium or Ir-based alloys