An experimental model for UWB distance measurements and its application to localization problems