Update calculate pH or OH or H+ based on given K