Residual stress within nanoscale metallic multilayer systems during thermal cycling