Model of impedance changes in nerve fibres