Entanglement complexity of semiflexible lattice polygons.