Tribological and protective coatings by chemical vapour deposition