Elastic interaction of two atoms adsorbed on a solid surface