compute_tracer function

Calculate tracers, e.g., trophic level