Quantifying urban vulnerability to climate change