Enhancing GNSS signal acquisition through the gradient method