Evolution of the trophic niche and food web structure