Dispersion interaction between adsorbed linear molecules