Electrochemical determination of the pKa of weak acids in N,N-dimethylformamide