Solid-state luminescence switching of platinum(ii) dithiooxamide complexes in the presence of hydrogen halide and amine gases.