Feedback controlled electromigration