Parameterizing ecosystem biogeochemistry using physical rules