Statistical characterization and mitigation of NLOS errors in UWB localization systems