Electrical and photoelectrical performances of nano-photodiode based on ZnO nanowires