A Direct Method for Optimal Control Synthesis of Manipulator Point-to-Point Motion