The spectra of minor planets