The effects of temperature on the machining of metals