Comprehensive analysis of vacancy dynamics due to electromigration