How can cepheid variables be used to find distance?