Method of composing two-dimensional scanned spectra observed by the New Vacuum Solar Telescope