Coating made of titanium carbide