Gravar-mail: A three-terminal ultraviolet photodetector constructed on a barrier-modulated triple-layer architecture