Memristive and magnetoresistance effects of SnSe2 | Synapse