Correlating metasurface spectra with a generation-elimination framework | Synapse