Foreign inventors in Europe and the United States: Diversity and Patent Quality