Integral points in rational polygons: a numerical semigroup approach