Modelling of the geometry of weft-knitted fabrics