An acid is a substance which in the presence of water produces