Effect of Bending Rigidity on the Knotting of a Polymer under Tension