Joint Optimization of Collaborative Sensing and Radio Resource Allocation in Small-Cell Networks