Selectivities and thermodynamic parameters of alkali-metal and alkaline-earth-metal complexes of polyethylene glycol dimethyl ethers in methanol and acetonitrile