First Principles Study on the Structural and Electrochemical Properties of LiCoO2 and Ni Doped LiCoO2 Cathodes in Lithium Batteries