Intramolecular proton transfer induced by divalent alkali earth metal cation in the gas state