Lattice dynamics of YBa2Cu3O7− x