How religions predict the world will end