A New Dynamic Resource Allocation Strategy Based on Distance for Aeronautical Ad Hoc Networks