Excitation and decay of giant resonances