Mathematical modelling of 3D and conventional woven fabrics