European Commission President Ursula von der Leyen has called for diplomacy to end the war on Iran, and warned the impact of the conflict could last for years.