Optimal Three-Dimensional Trajectories for Manned Mars Missions