Electric fields in the ionosphere and the excitation of the red lines of atomic oxygen