Thermal reversibility and bistability in photochromic diarylethenes