Understanding of the Li-insertion process in a phosphate based electrode material for lithium ion batteries