Internal and external energy sources in the Earth system