Theoretical study of photochromic compounds, part 2: Thermal mechanism for byproduct formation and fatigue resistance of diarylethenes used as data storage materials