First-principles calculation and experimental investigation of lattice dynamics in the rare-earth pyrochlores R2Ti2O7 (R = Tb, Dy, Ho)