Identify the anion present in each of the following compounds :
(i) A salt M on treatment with concentrated sulphuric acid produces a gas which fumes in moist air and gives dense fumes with ammonia.
(ii) A salt D on treatment with dilute sulphuric acid produces a gas which turns lime water milky but has no effect on acidified potassium dichromate solution.
(iii) When barium chloride solution is added to salt solution E a white precipitate insoluble in dilute hydrochloric acid is obtained.