An analytical approach to optimized anchors placement in UWB-based indoor localization