Determination of accurate critical-point energies, linewidths and line shapes from spectroscopic ellipsometry data