Methods for converting between objects used by R packages HyperSpec and ChemoSpec