Structure and dynamics of mesogens using intermolecular potentials derived from ab initio calculations