Nonautonomous equations, generalized dichotomies and stable manifolds