Solution concentration and pH calculations