Smooth and collision-free trajectory planning for redundant 3D laser cutting machines