DC Decomposition of Nonconvex Polynomials with Algebraic Techniques