First-principles based models for lateral interactions of adsorbates