Optimizing Spectra for Metabolomics