Joint optimization of SNR and motion energy consumption for UAV-enabled collaborative beamforming