A lab-on-chip sensor for in situ spectrophotometric measurement of seawater pH