Optimizing Energy-Efficient Clustering Algorithms for Prolonged Lifetime in WSN-IoT Deployments