Modeling the role of inventories and heterogeneity in the assessment of the economic costs of natural disasters