Cities are trying to take charge of their own power supply