hydrogen ion concentration function