Thermally irreversible organic photochromic compounds for optical memory