The effect of dispersion interactions on the properties of LiF in condensed phases