Time-Optimal Gate-Traversing Planner for Autonomous Drone Racing