Buffer solution and pH measurements