The effects of magnesium doping on the modal loss in AlGaN-based deep UV lasers