Photon-driven degradation processes in GaN-based optoelectronic devices