Improving UWB-based localization in iot scenarios with statistical models of distance error