Keeping the lights on in developing cities