Distributed beamforming with phase-only control for green cognitive radio networks