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