Temperature dependence of the local structure and lattice dynamics of wurtzite-type ZnO