Resonant amplification of internal gravity waves in shear flow