How is spectroscopic parallax is determined?