Rings, intermediate-range order and vibrational spectra of chalcogenide glasses