Brightest cluster galaxies as standard candles