Dulac criteria for autonomous systems having an invariant affine manifold