collapse_to_dyns function

Collapse MRS data by concatenating spectra along the dynamic dimension.