Optical distance sensors