Geometric Gait Optimization for Inertia-Dominated Systems With Nonzero Net Momentum