HOMOCLINIC TANGENCIES, GENERATING PARTITIONS AND CURVATURE OF INVARIANT MANIFOLDS