Insight into the effect of surface carboxyl and amino groups on the adsorption of titanium dioxide for acid red G