On spectrum sensing in cognitive radio CDMA networks with beamforming