The spectra of Uranus and Neptune at 8–14 and 17–23 μm