Optimal Sensing Cooperation for Spectrum Sharing in Cognitive Radio Networks