Effects of electrical, thermal and thermal gradient stress on reliability of metal interconnects