Enhanced adsorption of arsenate on titanium dioxide using Ca and Mg ions