Advances in electrolyte safety and stability of ion batteries under extreme conditions