Real-time 3-D modeling of the ground electric field due to space weather events. A concept and its validation