Bottom-up and top-down effects in food chains depend on functional dependence: an explicit framework