What factor helps the astronomers determine the temperature of a star?