Predicting the photoageing and photostabilization of polymer nanocomposites