Change and continuity in the medieval Trojan ancestry tradition