Linear and nonlinear optical properties of ZnO nanorod arrays