Time-resolved X-ray powder diffraction using a large-area CCD-based detector and Rietveld refinement: solid-state polymerization of S2N2 to (SN)x.