FEM optimization of tool geometry based on the machined near surface's residual stresses generated in diamond turning