Stefan problems with nonlinear boundary conditions: the polygonal method