Measurement of optical thickness by polarization beats interferometry