Nematic ordering of semiflexible polymers confined on a toroidal surface.