Flexible and Low-cost Interface Circuit for Electrochemical and Resistive Gas Sensors