From disaster to resilience : a comparative study of legal frameworks for managing the seismic risk of existing buildings.