MoS2-based Charge-trapping synaptic device with electrical and optical modulated conductance