Exploring effective charge in electromigration using machine learning