Spectrum unfolding in X-ray spectrometry using the maximum entropy method