Also, How was this heat energy used in generating the Earth's compositionally stratified layers?