what elements are involved in the cycling of energy and matter ao earth?