Evolution of ZnO nanostructures in sol–gel synthesis