DMF for lithium-ion batteries