Effect of the synthesis conditions on the electrochemical properties of LiFePO4 obtained from NH4FePO4