On the factorization of lacunary polynomials