On the relationship between productivity and food chain length at different ecological levels