Quantitative evaluation of photodegradation in coatings