Smooth Flight Trajectory Planning in the Presence of No-Fly Zones and Obstacles