A generic model of semiconductor-based photon-counting detectors for spectral CT | Synapse