Novel model for calculating the intermolecular part of the infrared spectrum for molecular complexes