Microscale Simulation Of The Mechanical And Electromagnetic Behavior Of Textiles