Optimal Clustering for Underwater Acoustic Sensor Networks