Gas dependent hysteresis in MoS2 field effect transistors