Relationship between Nanostructure and Optical Properties of ZnO Thin Films