Microscopic theory of electromigration on semiconductor surfaces