A CMOS interface for gas-sensor array with a 0.5%-linearity over 500kΩ-to-1GΩ range and ±2.5°C temperature control accuracy