Hysteresis in the transfer characteristics of MoS2 transistors