Decay of the giant dipole and quadrupole resonances in 16O