The synthesis and characterization of ionic liquids for alkali-metal batteries and a novel electrolyte for non-humidified fuel cells