An iterative method in a probabilistic approach to the spectral inverse problem. Differential emission measure from line spectra and broadband data