Use of31P NMR to measure pH of membrane-enclosed solutions