Wide-bandgap semiconductor ultraviolet photodetectors