The induction of electric currents in a non-uniform ionosphere