Coating made of tantalum or Ta-based alloys