Dirac equation on a square waveguide lattice with site-dependent coupling strengths and the gravitational Aharonov-Bohm effect