Coupling of electrochemically triggered thermal and mechanical effects to aggravate failure in a layered cathode