Design for Reliability: Tradeoffs between Lifetime and Performance due to Electromigration