How are cepheid variable stars used in determining distances?