Resource Allocation in Cognitive Radio-Enabled UAV Communication