The Effect of Globalization on Educational Attainment