Arc welding or cutting taking account of the properties of the materials to be welded {of different metals}