Formation of lubricating films at elevated temperatures from the gas phase