Preparation and properties of ZnO and devices