The integrated spectra of M32 and of 47 Tuc: A comparative study at high spectral resolution