1.what are the functions of pH?