Mechanism of Charge Transfer in Olivine-Type LiFeSiO4 and LiFe0.5M0.5SiO4 (M = Mg or Al) Cathode Materials: First-Principles Analysis