Lateral interactions in organic functionalization of semiconductor surfaces