Trajectory Planning for Autonomous Vehicles combining Nonlinear Optimal Control and Supervised Learning