Unmanned Aerial Vehicles for 5G and Beyond: Optimization and Deep Learning