Study on self-optimizing function for intelligent control of CO2 welding