Evaluation of positioning and ranging errors for UWB indoor applications