X-ray tube spectra measurement and correction using a CdTe detector and an analytic response matrix for photon energies up to 160 keV. (February 2016)