A CIA document explains how the end of the world will happen