Modelling of textile structures for advanced applications