HOMOTOPY INVARIANTS OF NONSIMPLY CONNECTED MANIFOLDS. I RATIONAL INVARIANTS