what is the general relationship between temperature and star brightness?