Evolutionary ecology of species´ ranges