Titanium diboride coatings and their interaction with the substrates