How cities can stay cool on a warming Earth