How can parallax be used to find the distance of a star?