Photo-oxidation of polymers used in electroluminescent devices