Resistive switching effect of Ag/MoS2/FTO device