Characterization of ZnO structures by optical and X-ray methods