Modelling of van der Waals force with smoothed particle hydrodynamics: application to the rupture of thin liquid films