Unifying sources and sinks in ecology andEarth sciences