Local force method for the ab initio tight-binding model: Effect of spin-dependent hopping on exchange interactions