Electrodynamics of the magnetosphere–ionosphere coupling in the nightside subauroral zone