Coating made of hafnium carbide