Integrated CMOS interface for wide-range resistite gas sensor