Lipschitz equivalence of Cantor sets and irreducibility of polynomials