Resonance Raman study of the phonon spectra in superconducting Bi-2212 and Y-123