describe the different stages of life cycle of stars​