Determinant quantum Monte Carlo study of the enhancement of d-wave pairing by charge inhomogeneity