Organic temperature sensors and organic analog-to-digital converters based on p-type and n-type organic transistors