Surface tension simulation of free surface flows using smoothed particle hydrodynamics