Nonionic surfactants as ligands for the complexation of alkali and alkaline-earth cations in methanol