Accurate Analysis of Weighted Centroid Localization