A Novel Nio-Based P-I-N Ultraviolet Photodiode