The partition function of large biomolecules, and its relevance to terahertz and infrared spectroscopy