Photodegradation and photostabilization of polystyrene