Modeling and optimization of process variables for HCl gas removal by response surface methodology