how is the color of the stars related to its temperature?