Which processes produced heat that contributed to the formation of earth’s different layers?.