Greenhouse-gas emissions from burning fossil fuels have been mapped across thousands of cities worldwide.