Coating made of titanium or of Ti-based alloys