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