Resonance states in the vibrational spectra of intermediate-valence semiconductors