X-ray studies on optical and structural properties of ZnO nanostructured thin films