Globalization and innovation in advanced economies