The mechanism of NaFePO₄ (de)sodiation determined by in situ X-ray diffraction.