Stress in thin films of metal oxide electrodes for intercalation reactions