Investigation of structure and phase formation in multilayer coatings and their thermal stability