Smart Multi-Frequency Bioelectrical Impedance Spectrometer for BIA and BIVA Applications