Infrared absorption spectra of metal carbides, nitrides and sulfides