Evolution of omnivory in a community context