what happens when an acid dissolves in water