Analysis of the intermolecular interaction of nanocomposites by THz spectroscopy