Mechanistic study of ZnO nanorod array electrodeposition