what the hottest layer of the earth is made of