Coating made of hafnium hydride