Quantum fluctuations in the presence of gravitational waves