Structural and optical properties of epitaxial and bulk ZnO