Facile synthesis of porous-carbon/LiFePO4 nanocomposites