Multiple Ballistic Resonant Gravity-Assist Trajectory Optimization Using A* Algorithm with Pruning