Stress distribution and mass transport along grain boundaries during steady-state electromigration