Urban spatial structure, housing markets, and resilience to natural hazards