Assessing Building Habitability after an Earthquake Using Building Typology and Damage Grade. Application in Lorca, Spain