Liquid-crystal-grating-based optical displacement sensors.