Automatic electric-arc surfacing