Reliability simulator for interconnect and intermetallic contact electromigration