Degradation of polymer encapsulants for photovoltaic application