The average ionospheric electrodynamics for the different substorm phases