Rationalizing the SER spectra of bacteria