NLOS Identification andWeighted Least-Squares Localization for UWB Systems UsingMultipath Channel Statistics