Contribution of decay products of transfer reactions to heavy-ion inelastic and transfer spectra