Stability and bifurcations in averaged models of dynamics