Impact of the effective refractive index in AlGaN-based mid-UV laser structures on waveguiding