A Continuous Implementation of a Second-Variation Optimal Control Method for Space Trajectory Problems