Binding of alkali and alkaline earth cations and of protons to the peptide group