Temperature dependence of the Raman and infrared phonons of MBa2Cu3O7-δ-type superconductors