First-Principles Calculations for Cathode Electrolyte and Anode Battery Materials