Democracy and Economic Openness in an Interconnected System