A miniaturized spectrophotometric in situ pH sensor for seawater