A hybrid particle-mesh method for simulating free surface flows