Russian invasion has forced West to look elsewhere for energy, providing opportunity for Iran while it smooths differences with rivals in Vienna negotiations