Filon quadrature for stochastic oscillators driven by time-varying forces