Models of species interactions in evolution and ecology