Three-dimensional Monte Carlo simulations of electromigration in polycrystalline metal films