Quadratic response of random and deterministic dynamical systems.