A stochastic model of damage accumulation in complex microstructures