Removal of the Continuum of X-Ray Spectra Using Morphological Oparaators