A numerical method for calculating temperature distributions in machining, from force and shear angle measurements