Predictive modeling for material microstructure affected machining