Countries, cities, carmakers commit to end fossil-fuel vehicles by 2040