Analysis of void formation in thermoplastic composites during resistance welding