Potentiometric assay for acid and alkaline phosphatase