Understanding Initial Capacity Loss in Substituted Layered Oxide Cathodes for Lithium-Ion Batteries