Oxygen and magnesium mass-independent isotopic fractionation induced by chemical reactions in plasma