Damping of giant resonances due to particle–phonon coupling