Optical design of a compact imaging spectrometer for planetary mineralogy