Virtual three-axis milling process simulation and optimization