A three-dimensional model of electromigration and stress induced void nucleation in interconnect structures