Energy flow and geosphere interactions archaean to the present: the foundation of the global resource base