Coating made of tungsten or W-based alloys