End-effector path planning and collision avoidance for robot-assisted surgery