Investigating the environmental Kuznets curves through the economic globalization lens: evidence from middle income countries