Improved three-dimensional mapping of the electron density distribution of the solar corona