Avoidance of Thermal Damage in Grinding and Prediction of the Damage Threshold