An Integrated CMOS Front-End for Optical Absolute Rotary Encoders