Salt S is a white solid that dissolves in water. In a flame test, S makes the flame lilac. When S is warmed with aqueous sodium hydroxide alone, there is no smell of ammonia. When aluminium foil is then added to the warm mixture, a gas that turns damp red litmus paper blue is released. S produces no bubbles with dilute hydrochloric acid. What is S?