Optimal Trajectory of Underwater Manipulator Using Adjoint Variable Method for Reducing Drag