Ecological and genetic models of diversity: Lessons across disciplines