Growth of ZnO nanorod arrays by sol–gel method: transition from two-dimensional film to one-dimensional nanostructure