Titration of bases in acetonitrile