Electronic and optical switching of solution-phase deposited SnSe2 phase change memory material