AlGaN based UV LEDs and high frequency transistors