Optical path difference measurement techniques for SLMs