By dramatically raising fossil-fuel prices, the conflict has also been pushing governments, companies and consumers towards renewable energy.