Low-Cost Impedance Spectroscopy System Based on a Logarithmic Amplifier