Application of optimal control problem for surface roughness improvement in milling