An inversely designed integrated spectrometer with reconfigurable performance and ultra-low power consumption | Synapse