Measuring acetic and formic acid by proton-transfer