Structure and mechanics of woven fabrics