Mechanics of a Knitted Fabric