Ecological niche and species distribution