Spectral domain inverse design for accelerating nanocomposite metamaterials discovery