Effects of impurities on graphite shape during solidification of spheroidal graphite cast ions