Mixed convex/non-convex distributed localization algorithm for the deployment of indoor positioning services