Monte Carlo calculation of the free energy difference between hard and soft core diatomic liquids