Work fluctuations and stochastic resonance