Heating of the interstellar medium by the solar wind