An Intelligently Reconfigurable Snapshot Imaging Spectrometer for Planetary Exploration