An Embedded System-Based Snap Constrained Trajectory Planning Method for 3D Motion Systems