Output Mode Switching for Parallel Five-bar Manipulators Using a Graph-based Path Planner