Invariants of polynomial vector fields