Lattice dynamics of the high-Tc superconductor YBa2Cu