Performance analysis of a lightweight RSSI-based localization algorithm for Wireless Sensor Networks