Multi-scale 3D modeling of mesospheric electric fields and thunderstorm electrodynamics