Intermolecular potential variation due to intramolecular rotation in molecules