By 2030, half a billion people could move to cities all over the world, pushing up demand for energy.