Phototransformation of merocyanine forms of spiropyrans in amorphous polymeric media