Excitation of giant resonances in intermediate energy heavy-ion reactions