Time-Optimal Trajectory Generation for Path Following with Bounded Acceleration and Velocity