Lattice vibrations of Y1−xPrxBa2Cu3O7: theory and experiment