Trajectory Optimization for UAV-to-Device Underlaid Cellular Networks by Mean-Field-Type Control