Optimization of Cam-Follower Systems With Kinematic and Dynamic Constraints