Fundamentals and applications of spectroscopic ellipsometry