Fundamental chemistry of alkali and alkaline earth cations: Study of anion versus solvent preferences