Optical-memory switching and oxygen detection based on the CVT grown γ- and α-phase In2Se3