Junction Properties and Applications of ZnO Single Nanowire Based Schottky Diode