Which of the following is the stage where a massive star explodes and releases a lot of energy?