Hydrolysis of LiPF6 in Carbonate-Based Electrolytes for Lithium-Ion Batteries and in Aqueous Media