Motion rephasing in gradient-localized spectroscopy