what ways did the waves of invasions by Vikings, Muslims, and Magyars affect the people of medieval Europe?