Photodichroic crystals for coherent optical data processing