Intracavity measurement of liquid crystal layer thickness by wavelength tuning of an external cavity laser diode.