Real time spectroscopic ellipsometry for characterization of thin film optical properties and microstructural evolution