A study of the residual stress behavior of rigid and flexible epoxy adhesives during thermal cycle aging for electronics packaging