Modeling microstructural heterogeneity and damage localization in nodular cast iron