Classical infrared spectra of ionic crystals and their relevance for statistical mechanics