Optimal Cooperative Spectrum Sensing in Cognitive Sensor Networks