Simultaneous measurement of the horizontal components of the Earth's electric field in the atmosphere and in the ionosphere