An x-ray spectrometer using thermoluminescence detectors