The origin of the solar wind