Solid state synthesis of LiFePO4 studied by in situ high energy X-ray diffraction