Ionic liquids for sustainable energy-storage devices