A theoretical and experimental study of Fe XIX to Fe XXIV solar-flare spectra and isoelectronic spectra in sulfur