Influence of Reduction Reactions and Solid-Phase Composition on Porewater Concentrations of Arsenic