What happened to all of the heat Earth had when it formed