Automatic analysis of γ-ray spectra including multiplets