G-20 leaders end meeting condemning war but note divisions