On nonlocal boundary value problems of nonlinear q-difference equations