Quantitative study of the photostability of spiropyrans