Unambiguous determination of thickness and dielectric function of thin films by spectroscopic ellipsometry