Infrared spectra of protostars - Composition of the dust shells