On the evolution of trophic position