Performance Of Time Delay Estimation And Range-Based Localization In Wireless Channels