Double effect of electrochemical reaction and substrateon hardness in electrodes of lithium-ion batteries