Factors affecting workpiece deformation during grinding