Optimal Finite-Thrust Spacecraft Trajectories