Joint Design of Energy-Efficient Clustering and Data Recovery for Wireless Sensor Networks