A CMOS monolithic optical head for high-resolution position encoders