Why are cepheid variables known as standard candles?