Self-powered GaN ultraviolet photodetectors with p-NiO electrode grown by thermal oxidation