Targeting adequate thermal stability and fire safety in selecting ionic liquid-based electrolytes for energy storage