Mechanism of LiFePO4 solid-phase synthesis using iron (II) oxalate and ammonium dihydrophosphate as precursors