Correlation between proton affinity and core-electron ionization potentials for double-bonded oxygen. Site of protonation in esters