A distributed Gauss-Newton approach for range-based localization of multi agent formations