Superconducting energy gap and phonon spectra in MBa2Cu3O7−x type materials