Fault Modeling and Simulation of Memristor based Gas Sensors