The pH of a substance is a measure of its