On Designing Optimal Trajectories for Servo-Actuated Mechanisms Through Highly Detailed Virtual Prototypes