Resonance fluorescence study of electronically excited sulphur atoms: reactions of S(31D2)