Design of a CMOS readout circuit for dental X-ray imaging