Resilience in housing regeneration for a smart city model