Coating made of chromium or Cr-based alloys