Environmental Policy and Firm Selection in the Open Economy