An analytical model of the electron density profile in the ionosphere