life cycle of a massive star