Conflicting Roles of Anion Doping on the Electrochemical Performance of Li-Ion Battery Cathode Materials