ZnO micro/nanorods: their performance in the photocatalytic degradation and photodiode