Ab initio study of acid-base interactions. Proton, lithium, and sodium affinities of first-and second-row bases