Quantum chemical calculations on ion pairs. II. Structure of haloacetic acids in aqueous solution