Simulation of X-ray Spectra Generated by Kilovolt-Electron Bombardment