Global existence and nonexistence of solutions to the Cahn-Hilliard equation with variable exponent sources