Reconstructing past ocean pH-depth profiles