Foreign investment, critical infrastructures and national security