An Algorithm for Placing and Allocating Communications Resources Based on Slicing-Aware Flying Access and Backhaul Networks