Emulation of optical and electrical synaptic functions in MoS2/SnSe2 van der Waals heterojunction memtransistors | Synapse