A procedure to increase signal in X-ray spectrometry