How can parallax be used in astronomy?