In operando phase transitions and Lithium ion transport in LiFePO4