Regulation of photochromic properties of fast-relaxing spiropyrans in polymer films