Midinfrared spectral features of rocks and their powders