Monolithic In2Se3–In2O3 heterojunction for multibit non-volatile memory and logic operations using optoelectronic inputs