In situ optical and spectroscopic imaging of photochromic cyclization and crystallization of a diarylethene film with optical microscopy