Three-dimensional Josephson junction networks with coupling inhomogeneities in magnetic fields