In situ spectroscopic ellipsometry as a versatile tool for studying atomic layer deposition