A Distributed Cluster-Based Localization Method for Wireless Sensor Networks