Systems and methods for metrology with layer-specific illumination spectra