Spectrometer for reflection and transmission