pH Nanosensor Using Electronic Spins in Diamond.