Gasistor: A memristor based gas-triggered switch and gas sensor with memory | Synapse