The absolute refractory period of an action potential is due to: