Which process produces the energy radiated by the star when it becomes a main sequence star?