Analog to digital converters on plastic foils