Thermodynamics of LiFePO4 Solid-Phase Synthesis Using Iron(II) Oxalate and Ammonium Dihydrophosphate as Precursors