spectroscopy and pH prediction