Resilience assessment of Physical infrastructures and social systems of large scale communities