X-ray spectra produced by thermal bremsstrahlung