Niche dynamics in the European ranges of two African carnivores reflect their dispersal and demographic histories