Synthesis and characterization of undoped and Mn doped LiFePO4