Trajectory Design Using a Dynamical Systems Approach With Application to Genesis