Cooperative weighted centroid localization for cognitive radio networks