The correction of resolution distortion in continuous pulse-height spectra