The role of Mg complexes in the degradation of InGaN-based LEDs