Using D-operators to construct orthogonal polynomials satisfying higher order q-difference equations