High resolution rail-to-rail ADC in CMOS digital technology