Specialization patterns and reduction of CO2 emissions. An empirical investigation of environmental preservation and economic efficiency