Integrated CMOS interface for wide-range resistive gas sensors