Comparison of Mg–Al layered double hydroxides intercalated with OH− and CO32− for the removal of HCl, SO2, and NO2