Cooperative Diversity in Wireless Sensor Networks