Comparison of catastrophic optical damage events in GaAs- and GaN-based diode lasers