Create synthetic spectra

Functions for creating synthetic spectra: