The factorization of a q-difference equation for continuous q-Hermite polynomials