The spectral response of silicon X-ray detectors