On the different contributions of coherent structures to the spectra of a turbulent round jet and a turbulent boundary layer