Berkovich spaces, polytopes and model theory