Photoinduced reversible optical gratings in photochromic diarylethene-doped polymeric thin films