Smooth path planning for fixed-wing aircraft in 3D environment using a layered essential visibility graph