Automatic adaptive remeshing for unsteady interfacial flows with surface tension