In situ spectroscopic ellipsometry as a sensor for hard coatings and steel nitriding