For a classic textbook introduction to the topic of pH measurements in nonaqueous solvents you may want to check: Herbert A. Laitinen and Walter E. Harris, “Chemical Analysis ─ An Advanced Text and Reference”, 2nd ed., McGraw-Hill Kogakusha, 1975, section 4-10.