Resonant photoemission spectra in Cu and Ni