Structural phase transition and erasable optically memorized effect in layered γ-In2Se3 crystals