Energy-sensitive scatter estimation and correction for spectral x-ray imaging with photon-counting detectors. (1st December 2022)