How is distance to cepheid variables estimated?