A Thorax Simulator for Complex Dynamic Bioimpedance Measurements With Textile Electrodes