Investigation of thermal effects on machining chatter based on FEM simulation of chip formation