The lifecycle of a star is determined by the star's