Coating made of tin or Sn-based alloys