state how the sun generates the energy that it radiates away as its luminosity.