Understanding improved electrochemical properties of NiO-doped NiF2-C composite conversion materials by X-ray absorption spectroscopy and pair distribution function analysis.