A practical clock synchronization algorithm for UWB positioning systems