During the early Middle Ages, western European societies were most influenced by