Three-dimensional metal-semiconductor-metal AlN deep-ultraviolet detector