Trajectory generation, control, and geometric error compensation for a 9-axis micromachining center