name two ways in which the earth system relies on energy from the sun?