Fast, self-compensating spectral-scanning ellipsometer