Alloy scattering in AlGaN and InGaN: A numerical study