Electron transfer competes with proton transfer in gas-phase acid-base reactions