melt_spectra function

Melts the spectra data of a Spectra object and returns it as wide format.