A two-scale model of degenerated graphite in cast iron