Analyzing and optimizing the impact of economic restructuring on Shanghai’s carbon emissions using STIRPAT and NSGA-II