Miniaturized spectrometer with intrinsic long-term image memory | Synapse