Resonance-like response of modulated semiconductor optical amplifiers