Resonant absorption troughs in the gamma-ray spectra of QSO