Obtaining high-resolution velocity spectra using weighted semblance