Interpretation of 3p-core-excitation spectra in Cr, Mn, Fe, Co, and Ni