Quantitative assessment of social losses based on physical damage and interaction with infrastructural systems