Electrical impedance measurements for pulmonary disease diagnosis