Thermodynamic and electrochemical studies of lanthanide and alkaline-earth-metal cryptates in dimethyl sulfoxide