Substrate mediation of the interaction between adatoms on graphite: Discrete lattice model