Welding of magnesium alloys with activating flux