Energy-Aware Relay Optimization and Power Allocation in Multiple Unmanned Aerial Vehicles Aided Satellite-Aerial-Terrestrial Networks