A new tool to assess the resilience of an urban environment under an earthquake scenario