Differential Elimination and Algebraic Invariants of Polynomial Dynamical Systems