Optical data storage in photochromic compounds