Effect of C doping on the structural and electronic properties of LiFePO 4 : A first-principles investigation