Tradeoff between energy consumption and detection capabilities in collaborative cognitive wireless networks