Make you substitution and pull the sum out of the integral to get
$\displaystyle \sum_q J_q(\frac{m}{2})\int_{-w}^w dx^\prime \exp(i(qk_G-\frac{kx}{z})x^\prime)$
Now each integral is a straightforward integral of a complex exponential:
$\displaystyle \int_{-w}^w dx^\prime ... = \frac{2i\sin((qk_G-kx/z)w)}{qk_G-kx/z}$
So you just have a series of terms, each one being a Bessel function multiplied by the coefficient you get from the integrals. Honestly, I'm now at my limits. I suspect that the sum can be evaluated or well-approximated by some piece of other information you have been given.