Lattice dynamics and electrical properties of wurtzite ZnO determined by a density functional theory method