Text this: Globalization and the quality of foreign direct investment