On an iterative method for the unfolding of spectra