Maximum Intersection of Spherical Polygons and Workpiece Orientation for 4- and 5-Axis Machining