Text this: Detective efficiency of photon counting detectors with spectral degradation and crosstalk.