Ab initio molecular dynamics simulation of methanol and acetonitrile: The effect of van der Waals interactions