Interpretability meets accuracy in computational spectroscopy: The virtual multifrequency spectrometer