Energy-Efficient UAV-Assisted MobileEdge Computing: Resource Allocation and Trajectory Optimization