how do astronomers measure quasar distances