Analog-to-digital converters for optical sensor arrays