How do acids and bases affect the hydrogen ion concentration of a solution?