Optimal Control of Spacecraft Orbital Maneuvers by the Hamilton-Jacobi Theory