Analytical invariant manifolds near unstable points and the structure of chaos