Photochromic reactions of a diarylethene derivative in polymer matrices