Spectrum sensing and throughput maximization in cognitive radio networks