Stable electrolytes for lithium batteries