Planning Jerk-Optimized Trajectory with Discrete-Time Constraints for Redundant Robots