what gas does hydrogen change into as a star becomes hotter