Theory of electrostatic fields in the ionosphere at equatorial latitudes