Technoeconomic and environmental optimization of combined heat and power systems with renewable integration for chemical plants