Text this: Foreign direct investment and its impact on CO2 emissions at various levels of economic development