Spectral properties of the scattering matrix