Determining soil and water sodicity from electrode measurements