Text this: Adopting Centroid and Amended Trilateration for better accuracy of range-based non-GPS localization