The science of lighting a city