Knitting 4D garments with elasticity controlled for body motion