The effect of near-surface metallurgy on the machinability of cast iron