Cloud-aided wireless systems: communications and radar applications