The use of complex impedance spectroscopy measurements for improving strain sensor performance