Automated Control of Material Structure with Electrical Impedance Monitoring