Three-dimensional structure of the solar wind: Variation of density with the solar cycle