mutate function

Mutate a Spectra* object by transforming the spectra values, and/or adding new or replacing existing attributes.